package com.woniu.mapper;

import com.woniu.entity.Category;

import java.util.List;

public interface CategoryMapper {

    List<Category> findAll();
    //根据id找子类别
    List<Category>findById(Integer categoryId);
    Category findByName(String name);
    Category findById2(Integer categoryId);//根据id查询类别
    Integer update(Category category);
    Integer delete(Integer categoryId);
    Integer add(Category category);

}
